package com.example.operator;

/**
 * 运算符
 */
public class OperatorDemo01 {
    public static void main(String[] args) {
        int a=10;
        int b=8;

        System.out.println(a+b);
        System.out.println(a-b);
        System.out.println(a*b);
        System.out.println(a/b);
        System.out.println(5/2);
        System.out.println(5.0/2);
        System.out.println(1.0*a/b);

        System.out.println(a%b);
        System.out.println(5%2);

        System.out.println("============");

        System.out.println("abc"+a);
        System.out.println("abc"+'a'+a);
        System.out.println('a'+a+"abc");

    }
}
